<?php

// $Id$


require_once($WSC->get_site_inc_dir().'modules/tangra_cms/_sys/tcms_admin_page_w_fctrl_ua.class.php');
require_once($WSC->get_site_inc_dir().'modules/tangra_cms/forms/_settings/settings_images/settings_images_form_ctrl.class.php');


class Settings_Images_Edit_WP extends TCMS_Admin_Page_W_FCtrl_UA {
	public function create_view($name = 'default') {
		$ret = new TCMS_Admin_Page_View($this, $name, 'modules/tangra_cms/pages/_settings/');

		return $ret;
	}


	protected function create_form_ctrl() {
		$dbc = $this->get_dbc();
		$tvm = $this->get_tvm();

		$ret = new Settings_Images_Form_Ctrl('settings_images', $tvm, $dbc, 'obj_id');
		$ret->set_permanent_external_param('uploads_dir', $this->_config->get_uploads_dir());

		return $ret;
	}
}